import java.math.BigInteger;

public class Leetcode306 {
    public static void main(String[] args) {
        Long l = null;
        long s = l;
    }

    public boolean isAdditiveNumber(String num) {
        for (int firstLength = 1; firstLength < num.length() / 3; firstLength++) {
            for (int secondLength = 1; secondLength < num.length() / 3; secondLength++) {

            }
        }

        return false;
    }

    private boolean check(int firstLength, int secondLength, String num) {
        for (int i = 0; i < num.length(); i++) {
            BigInteger first = new BigInteger(num.substring(0, firstLength));
            BigInteger second = new BigInteger(num.substring(firstLength, firstLength + secondLength));
            String third = first.add(second).toString();
            String thirdNumber = num.substring(firstLength + secondLength, firstLength + secondLength + third.length());
            if (!third.equals(thirdNumber)) {
                return false;
            }
        }

        return true;
    }
}
